#!/usr/bin/env python3
# -*- coding: utf-8 -*-

from dragon.locatordetail import LocatorDetail

class StockList:
    stockBlock = LocatorDetail('li.infinite-list-item', '股票块')
    stock=LocatorDetail('div.demo6-item-name>div','股票')
    stockCode=LocatorDetail('div.demo6-item-name>div>span','股票代码')
    changeCount=LocatorDetail('div.demo6-item-moneyNum>span','异动次数')
    changeTime=LocatorDetail('div.demo6-item-BkName>span','异动时间')
    realtimeIncrease=LocatorDetail('div.demo6-shishi>div','实时涨幅')
    changeIncrease=LocatorDetail('div.demo-yidong>div','异动涨幅')
    changeDetailButton=LocatorDetail('div.demo6-item-right>div.date-right','资金详情按钮')
    clickableChangeDetailButton = LocatorDetail(
        'div.demo6-item-right>div.date-right[style="color: rgb(65, 109, 249);"]', '可点击的资金详情按钮')
    # changeDetailItem = LocatorDetail('div.detil-item', '资金详情行')
    changeDetailTime=LocatorDetail('div.detil-item-time','资金详情时间')
    auction=LocatorDetail('div.jlk>div:nth-child(1)>div','集合竞价')
    circulation=LocatorDetail('div.jlk>div:nth-child(2)>div','流通值')
    openVolume=LocatorDetail('div.jlk>div:nth-child(3)>div','集合竞价')
    labelBar=LocatorDetail('div.labels','标签栏')
    label=LocatorDetail('div.labels>div','标签')
    notMatchAlert=LocatorDetail('div.emptySelect-title','空数据提示')
    notTradeTimeAlert=LocatorDetail('div.emptyTime-title','非交易时间提示')
    labelDescFloat=LocatorDetail('div.FlotItem','股票说明浮窗')
    includeTime=LocatorDetail('div.naru','纳入时间')